1 19 package org.openharmonise.rm.security.authorization; 20 21 import java.util.List ; 22 import java.util.logging.*; 23 24 import org.openharmonise.commons.dsi.AbstractDataStoreInterface; 25 import org.openharmonise.rm.DataAccessException; 26 import org.openharmonise.rm.metadata.Profile; 27 import org.openharmonise.rm.resources.*; 28 29 30 37 public class AuthorityProfile extends Profile { 38 39 public static final String SECURITY_PROFILE_NAME = "Security"; 40 41 44 private static final Logger m_logger = Logger.getLogger(AuthorityProfile.class.getName()); 45 46 { 47 try { 48 super.setName(SECURITY_PROFILE_NAME); 49 } catch (InvalidNameException e) { 50 m_logger.log(Level.WARNING, e.getLocalizedMessage(), e); 52 } 53 } 54 55 59 public AuthorityProfile() { 60 super(); 61 } 62 63 66 public AuthorityProfile(AbstractDataStoreInterface dbintrf) { 67 super(dbintrf); 68 } 69 70 74 public AuthorityProfile( 75 AbstractDataStoreInterface dbintrf, 76 AbstractProfiledObject obj) { 77 super(dbintrf, obj); 78 } 79 80 85 public AuthorityProfile( 86 AbstractDataStoreInterface dbintrf, 87 int nId, 88 AbstractProfiledObject obj) { 89 super(dbintrf, nId, obj); 90 } 91 92 95 public String getName() throws DataAccessException { 96 return SECURITY_PROFILE_NAME; 97 } 98 99 102 public void setName(String sName) { 103 } 105 106 109 public boolean isValid(AbstractProfiledObject profObj) 110 throws DataAccessException { 111 112 return true; 114 } 115 116 119 public List getAvailableProperties() throws DataAccessException { 120 return AuthorizationValidator.getSecurityProperties(m_dsi); 121 } 122 123 } 124 | Popular Tags |