org.jboss.picketlink.idm.internal.jpa
Class AbstractDatabaseIdentityType<A extends AbstractDatabaseAttribute>

java.lang.Object
  extended by 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

Constructor Summary
AbstractDatabaseIdentityType()
           
AbstractDatabaseIdentityType(String name)
           
 
Method Summary
protected abstract  A createAttribute(String name, String value)
           
 String getAttribute(String name)
           
 Map<String,String[]> getAttributes()
           
 String[] getAttributeValues(String name)
           
 Date getCreationDate()
           
 Date getExpirationDate()
           
 String getId()
           
 String getKey()
           
abstract  List<A> getOwnerAttributes()
           
 boolean isEnabled()
           
 void removeAttribute(String name)
           
 void setAttribute(String name, String value)
           
 void setAttribute(String name, String[] values)
           
 void setCreationDate(Date creationDate)
           
 void setEnabled(boolean enabled)
           
 void setExpirationDate(Date expirationDate)
           
 void setId(String id)
           
 void setKey(String key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractDatabaseIdentityType

public AbstractDatabaseIdentityType()

AbstractDatabaseIdentityType

public AbstractDatabaseIdentityType(String name)
Method Detail

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.