Class AbstractCredentialsImpl
- java.lang.Object
-
- org.alfresco.repo.remotecredentials.AbstractCredentialsImpl
-
- All Implemented Interfaces:
java.io.Serializable,PermissionCheckValue,BaseCredentialsInfo
- Direct Known Subclasses:
OAuth1CredentialsInfoImpl,OAuth2CredentialsInfoImpl,PasswordCredentialsInfoImpl
public abstract class AbstractCredentialsImpl extends java.lang.Object implements BaseCredentialsInfo
This class is the parent of a set of Remote Credentials- Since:
- Odin
- Author:
- Nick Burch
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractCredentialsImpl(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName type, java.lang.String remoteSystemName, org.alfresco.service.cmr.repository.NodeRef remoteSystemContainerNodeRef)AbstractCredentialsImpl(org.alfresco.service.namespace.QName type)Creates a new, emptyAbstractCredentialsImplready to be stored later
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.alfresco.service.namespace.QNamegetCredentialsType()booleangetLastAuthenticationSucceeded()org.alfresco.service.cmr.repository.NodeRefgetNodeRef()Get the underlying node value that needs to be permission checked.org.alfresco.service.cmr.repository.NodeRefgetRemoteSystemContainerNodeRef()java.lang.StringgetRemoteSystemName()java.lang.StringgetRemoteUsername()voidsetLastAuthenticationSucceeded(boolean succeeded)voidsetRemoteUsername(java.lang.String username)
-
-
-
Constructor Detail
-
AbstractCredentialsImpl
public AbstractCredentialsImpl(org.alfresco.service.namespace.QName type)
Creates a new, emptyAbstractCredentialsImplready to be stored later
-
AbstractCredentialsImpl
public AbstractCredentialsImpl(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName type, java.lang.String remoteSystemName, org.alfresco.service.cmr.repository.NodeRef remoteSystemContainerNodeRef)
-
-
Method Detail
-
getNodeRef
public org.alfresco.service.cmr.repository.NodeRef getNodeRef()
Description copied from interface:PermissionCheckValueGet the underlying node value that needs to be permission checked.- Specified by:
getNodeRefin interfaceBaseCredentialsInfo- Specified by:
getNodeRefin interfacePermissionCheckValue- Returns:
- the NodeRef of the underlying credentials
-
getCredentialsType
public org.alfresco.service.namespace.QName getCredentialsType()
- Specified by:
getCredentialsTypein interfaceBaseCredentialsInfo- Returns:
- the Type of the underlying credentials
-
getRemoteSystemName
public java.lang.String getRemoteSystemName()
- Specified by:
getRemoteSystemNamein interfaceBaseCredentialsInfo- Returns:
- the Remote System Name the credentials belong to
-
getRemoteSystemContainerNodeRef
public org.alfresco.service.cmr.repository.NodeRef getRemoteSystemContainerNodeRef()
- Specified by:
getRemoteSystemContainerNodeRefin interfaceBaseCredentialsInfo- Returns:
- the NodeRef of the container for the Remote System
-
getRemoteUsername
public java.lang.String getRemoteUsername()
- Specified by:
getRemoteUsernamein interfaceBaseCredentialsInfo- Returns:
- the Remote Username
-
setRemoteUsername
public void setRemoteUsername(java.lang.String username)
-
getLastAuthenticationSucceeded
public boolean getLastAuthenticationSucceeded()
- Specified by:
getLastAuthenticationSucceededin interfaceBaseCredentialsInfo- Returns:
- whether the last authentication attempt succeeded
-
setLastAuthenticationSucceeded
public void setLastAuthenticationSucceeded(boolean succeeded)
-
-