org.jboss.picketlink.idm.internal.jpa
Class AbstractDatabaseIdentityType<A extends AbstractDatabaseAttribute>
java.lang.Object
org.jboss.picketlink.idm.internal.jpa.AbstractDatabaseIdentityType<A>
- All Implemented Interfaces:
- IdentityType
- Direct Known Subclasses:
- DatabaseGroup, DatabaseRole, DatabaseUser
@MappedSuperclass
public abstract class AbstractDatabaseIdentityType<A extends AbstractDatabaseAttribute>
- extends Object
- implements IdentityType
- Author:
- Pedro Silva
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractDatabaseIdentityType
public AbstractDatabaseIdentityType()
AbstractDatabaseIdentityType
public AbstractDatabaseIdentityType(String name)
getId
public String getId()
- Returns:
- the id
setId
public void setId(String id)
- Parameters:
id - the id to set
getKey
public String getKey()
- Specified by:
getKey in interface IdentityType
setKey
public void setKey(String key)
isEnabled
public boolean isEnabled()
- Specified by:
isEnabled in interface IdentityType
- Returns:
- the enabled
setEnabled
public void setEnabled(boolean enabled)
- Parameters:
enabled - the enabled to set
getExpirationDate
public Date getExpirationDate()
- Specified by:
getExpirationDate in interface IdentityType
- Returns:
- the expirationDate
setExpirationDate
public void setExpirationDate(Date expirationDate)
- Parameters:
expirationDate - the expirationDate to set
getCreationDate
public Date getCreationDate()
- Specified by:
getCreationDate in interface IdentityType
- Returns:
- the creationDate
setCreationDate
public void setCreationDate(Date creationDate)
- Parameters:
creationDate - the creationDate to set
getOwnerAttributes
public abstract List<A> getOwnerAttributes()
- Returns:
- the userAttributes
setAttribute
public void setAttribute(String name,
String value)
- Specified by:
setAttribute in interface IdentityType
createAttribute
protected abstract A createAttribute(String name,
String value)
setAttribute
public void setAttribute(String name,
String[] values)
- Specified by:
setAttribute in interface IdentityType
removeAttribute
public void removeAttribute(String name)
- Specified by:
removeAttribute in interface IdentityType
getAttribute
public String getAttribute(String name)
- Specified by:
getAttribute in interface IdentityType
getAttributeValues
public String[] getAttributeValues(String name)
- Specified by:
getAttributeValues in interface IdentityType
getAttributes
public Map<String,String[]> getAttributes()
- Specified by:
getAttributes in interface IdentityType
Copyright © 2012. All Rights Reserved.