Class JPALinkedAccount
- java.lang.Object
-
- org.apache.syncope.core.persistence.jpa.entity.AbstractEntity
-
- org.apache.syncope.core.persistence.jpa.entity.AbstractGeneratedKeyEntity
-
- org.apache.syncope.core.persistence.jpa.entity.user.JPALinkedAccount
-
- All Implemented Interfaces:
Serializable
,Attributable<LAPlainAttr>
,Entity
,Account
,LinkedAccount
- Direct Known Subclasses:
JPAJSONLinkedAccount
@Entity public class JPALinkedAccount extends AbstractGeneratedKeyEntity implements LinkedAccount
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
TABLE
-
Fields inherited from class org.apache.syncope.core.persistence.jpa.entity.AbstractEntity
LOG
-
Fields inherited from interface org.apache.syncope.core.persistence.api.entity.Entity
EMAIL_PATTERN, ID_PATTERN, ID_REGEX
-
-
Constructor Summary
Constructors Constructor Description JPALinkedAccount()
-
Method Summary
-
Methods inherited from class org.apache.syncope.core.persistence.jpa.entity.AbstractGeneratedKeyEntity
getKey, setKey
-
Methods inherited from class org.apache.syncope.core.persistence.jpa.entity.AbstractEntity
checkImplementationType, checkType, equals, hashCode, toString
-
-
-
-
Field Detail
-
TABLE
public static final String TABLE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getConnObjectKeyValue
public String getConnObjectKeyValue()
- Specified by:
getConnObjectKeyValue
in interfaceLinkedAccount
-
setConnObjectKeyValue
public void setConnObjectKeyValue(String connObjectKeyValue)
- Specified by:
setConnObjectKeyValue
in interfaceLinkedAccount
-
getOwner
public User getOwner()
- Specified by:
getOwner
in interfaceLinkedAccount
-
setOwner
public void setOwner(User owner)
- Specified by:
setOwner
in interfaceLinkedAccount
-
getResource
public ExternalResource getResource()
- Specified by:
getResource
in interfaceLinkedAccount
-
setResource
public void setResource(ExternalResource resource)
- Specified by:
setResource
in interfaceLinkedAccount
-
getUsername
public String getUsername()
- Specified by:
getUsername
in interfaceAccount
-
setUsername
public void setUsername(String username)
- Specified by:
setUsername
in interfaceAccount
-
getCipherAlgorithm
public CipherAlgorithm getCipherAlgorithm()
- Specified by:
getCipherAlgorithm
in interfaceAccount
-
setCipherAlgorithm
public void setCipherAlgorithm(CipherAlgorithm cipherAlgorithm)
- Specified by:
setCipherAlgorithm
in interfaceAccount
-
canDecodeSecrets
public boolean canDecodeSecrets()
- Specified by:
canDecodeSecrets
in interfaceAccount
-
getPassword
public String getPassword()
- Specified by:
getPassword
in interfaceAccount
-
setEncodedPassword
public void setEncodedPassword(String password, CipherAlgorithm cipherAlgoritm)
- Specified by:
setEncodedPassword
in interfaceAccount
-
setPassword
public void setPassword(String password)
- Specified by:
setPassword
in interfaceAccount
-
setSuspended
public void setSuspended(Boolean suspended)
- Specified by:
setSuspended
in interfaceAccount
-
isSuspended
public Boolean isSuspended()
- Specified by:
isSuspended
in interfaceAccount
-
add
public boolean add(LAPlainAttr attr)
- Specified by:
add
in interfaceAttributable<LAPlainAttr>
-
remove
public boolean remove(LAPlainAttr attr)
- Specified by:
remove
in interfaceAttributable<LAPlainAttr>
-
getPlainAttr
public Optional<? extends LAPlainAttr> getPlainAttr(String plainSchema)
Description copied from interface:Attributable
Returns the plain attribute for this instance and the given schema name.s- Specified by:
getPlainAttr
in interfaceAttributable<LAPlainAttr>
- Parameters:
plainSchema
- plain schema name- Returns:
- plain attribute for this instance and the given schema name
-
getPlainAttrs
public List<? extends LAPlainAttr> getPlainAttrs()
Description copied from interface:Attributable
Returns the plain attributes for this instance.- Specified by:
getPlainAttrs
in interfaceAttributable<LAPlainAttr>
- Returns:
- plain attribute for this instance
-
add
public boolean add(Privilege privilege)
- Specified by:
add
in interfaceLinkedAccount
-
getPrivileges
public Set<? extends Privilege> getPrivileges()
- Specified by:
getPrivileges
in interfaceLinkedAccount
-
-