public class UserImpl extends PersonImpl implements User
IOAtom.ObjectType
mPerson, mReferenceState, mReferenceType, mUserGroups
LOGGER, sRefreshObjectBeforeLock
ID_INVALID, OBJECTTYPE_AGREEMENTINFO, OBJECTTYPE_ARTICLE, OBJECTTYPE_CATALOG, OBJECTTYPE_CATEGORY, OBJECTTYPE_ENTITY, OBJECTTYPE_FORUM, OBJECTTYPE_LAYOUT, OBJECTTYPE_MAX, OBJECTTYPE_MIN, OBJECTTYPE_PERSON, OBJECTTYPE_POOL, OBJECTTYPE_POSTING, OBJECTTYPE_PRESENTATION_FORUM, OBJECTTYPE_PRESENTATION_POSTING, OBJECTTYPE_PRESENTATION_THREAD, OBJECTTYPE_PROFILE, OBJECTTYPE_PUBLICATION, OBJECTTYPE_SECTION, OBJECTTYPE_THREAD, OBJECTTYPE_TOPIC, OBJECTTYPE_UNKNOWN, OBJECTTYPE_USERGROUP
Modifier and Type | Method and Description |
---|---|
String |
createAuthToken(String pName,
Date pExpireTime)
Create an authentication token for a specific identifier.
|
void |
deleteAuthToken(String pName)
Remove an authentication token entirely from the backing store.
|
protected neo.xredsys.acl.ACLManager |
getACLManager() |
String |
getAuthToken(String pName)
Get a specific, identifiable Authentication Token for this user.
|
Date |
getAuthTokenExpireDate(String pName)
Returns the expireDate of the specified token.
|
Collection |
getAuthTokenNames()
List authentication token names for this user.
|
Section |
getDefaultSection()
Returns the default section of this user in his owner publication.
|
Section |
getDefaultSection(int pPublicationId)
Returns the default section of this user in a specific publication.
|
int |
getFailedLoginAttempts()
Get the number of failed login attempts for this user.
|
String[] |
getGroups()
Retrieves all groups in which this user is member.
|
protected neo.xredsys.User |
getIOUser() |
Date |
getLastFailedLoginAttempt()
Get the date of last failed login attempt.
|
Date |
getLastLogin()
Get the date of last successful login.
|
Date |
getLastPasswordChange()
Get the date when the password for this user was changed.
|
Collection<Section> |
getNonInheritSections()
Retrieves all sections where this user has the given role and where the section does not inherit
access rights from its parent.
|
Collection<Section> |
getNonInheritSections(int pPubId)
Retrieves all sections in the specified publication where this user has the given role
and where the section does not inherit access rights from its parent.
|
protected ObjectLoader |
getObjectLoader() |
protected neo.xredsys.content.person.PersonManager |
getPersonManager() |
Set<ProtectionDomain> |
getProtectionDomains()
Retrieves all
ProtectionDomain s of this object |
List<Publication> |
getPublications()
Get the publications the user has access to.
|
Map<ProtectionDomain,List<neo.xredsys.acl.Role>> |
getRoles() |
Collection<String> |
getRoles(int pSectionId)
Retrieves a user's roles for a section.
|
Collection<Section> |
getSections()
Retrieves all sections where this user has a role.
|
Collection<Section> |
getSections(int pubId)
Retrieves all sections in the specified publication where this user has a role.
|
Collection<Section> |
getSections(String pRole)
Retrieves all sections where this user has the given role.
|
Collection<Section> |
getSections(String pRole,
int pubId)
Retrieves all sections in the specified publication where this user has the given role.
|
Type |
getStatus()
Get the user's status.
|
Date |
getStatusChange()
Get the last time the user's status changed.
|
IOTransaction |
getTransactionObjectImpl() |
boolean |
hasRole(String pRole) |
boolean |
isAuthTokenValid(String pToken)
Check if the given token is valid.
|
void |
refresh()
Removes all cached sections and catalogs from this
User object. |
void |
setGroups(String[] pGroups) |
protected void |
setIOUser(neo.xredsys.User ioUser) |
protected void |
setStatus(Type type) |
addProfile, checkLoaded, getAddress, getArticleRelations, getArticleRelations, getArticles, getArticles, getArticlesByRoleKeeper, getChecksum, getCreationDate, getDescription, getEmailAddress, getEmailAddresses, getFirstName, getFirstPublished, getFriendlyPublicationIds, getGenericName, getIOPerson, getLastModified, getLoginRealms, getName, getOccupation, getPhoneMobile, getPhonePrivate, getPhoneWorkDirect, getPostNumber, getPostPlace, getProfiles, getProfileType, getProtectionDomain, getPublishDate, getReferenceState, getReferenceType, getSourceId, getSourceName, getStateChange, getSurName, getUrl, getUserGroups, getUserName, getUUID, isExternal, isPrivileged, isPublished, isUser, removeProfile, removeProfiles, setAddress, setCreationDate, setDescription, setEmailAddress, setFirstName, setFirstPublished, setGenericName, setLastModified, setLoginRealms, setOccupation, setPassword, setPhoneMobile, setPhonePrivate, setPhoneWorkDirect, setPostNumber, setPostPlace, setPrivileged, setPublishDate, setReferenceState, setSourceId, setSourceName, setStateChange, setSurName, setType, setUrl, setUserName
breakAndLock, compareTo, createTransaction, equals, getDefaultProtectionDomain, getHashKey, getId, getLockKeeper, getObjectType, getOwnerPublicationId, getValid, hashCode, isLocked, isPreview, isStillValid, isValid, lock, lock, lock, lock, objectTypeAsString, setId, setOwnerPublicationId, setValid, stringToObjectType, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAddress, getArticlesByRoleKeeper, getDescription, getEmailAddress, getEmailAddresses, getFirstName, getFriendlyPublicationIds, getLoginRealms, getName, getOccupation, getPhoneMobile, getPhonePrivate, getPhoneWorkDirect, getPostNumber, getPostPlace, getProfiles, getSurName, getUserName, isExternal, isPrivileged, isUser
getArticleRelations, getArticleRelations, getArticles, getArticles, getCreationDate, getFirstPublished, getGenericName, getLastModified, getPublishDate, getReferenceState, getReferenceType, getSourceId, getSourceName, getStateChange, getUrl, isPublished
getProtectionDomain, getUserGroups
breakAndLock, createTransaction, getChecksum, getHashKey, getId, getLockKeeper, getObjectType, getOwnerPublicationId, isLocked, isPreview, isValid, lock, lock, lock, lock
public UserImpl()
public UserImpl(Person pPerson)
public Type getStatus()
User
protected void setStatus(Type type)
public Date getStatusChange()
User
getStatusChange
in interface User
public int getFailedLoginAttempts()
User
getFailedLoginAttempts
in interface User
public Date getLastFailedLoginAttempt()
User
getLastFailedLoginAttempt
in interface User
public Date getLastLogin()
User
getLastLogin
in interface User
public Date getLastPasswordChange()
User
getLastPasswordChange
in interface User
public IOTransaction getTransactionObjectImpl()
getTransactionObjectImpl
in class PersonImpl
protected neo.xredsys.User getIOUser()
protected void setIOUser(neo.xredsys.User ioUser)
public void refresh()
User
User
object.public List<Publication> getPublications()
User
getPublications
in interface User
public Map<ProtectionDomain,List<neo.xredsys.acl.Role>> getRoles()
public Collection<Section> getSections(String pRole, int pubId)
User
getSections
in interface User
pRole
- the role to search for this userpubId
- the id of the publication in which the roles in question should be foundSection
public Collection<String> getRoles(int pSectionId)
User
public Collection<Section> getSections(String pRole)
User
getSections
in interface User
pRole
- the role to search for this userSection
public Collection<Section> getSections()
User
getSections
in interface User
Section
public Collection<Section> getSections(int pubId)
User
getSections
in interface User
pubId
- the id of the publication in which the roles in question should be foundSection
public void setGroups(String[] pGroups)
public String[] getGroups()
User
public Collection<Section> getNonInheritSections()
User
getNonInheritSections
in interface User
Collection
of Section
objects.public Collection<Section> getNonInheritSections(int pPubId)
User
getNonInheritSections
in interface User
Collection
of Section
objects.public String createAuthToken(String pName, Date pExpireTime)
User
A token is an alpha numeric string which matches the regular expression '^[a-zA-Z0-9]*$' -- safe for transmission over most protocols. The token is typically around 35 to 40 characters long.
createAuthToken
in interface User
pName
- a String
value identifying this
token from other tokens. The identifier must conform to the
regular expression '^[a-z0-9\-]*$'pExpireTime
- is the time the token should expire, may not be
null, if you want an eternal token, use new
Date(Long.MAX_VALUE).
public void deleteAuthToken(String pName)
User
deleteAuthToken
in interface User
pName
- a String
valuepublic Collection getAuthTokenNames()
User
getAuthTokenNames
in interface User
java.util.Collection
of Strings, each of
which represent a valid authentication token. If none can be
found, an empty collection is returned.public String getAuthToken(String pName)
User
getAuthToken
in interface User
pName
- the String which identifies the tokennull
will be returned.public boolean isAuthTokenValid(String pToken)
User
isAuthTokenValid
in interface User
pToken
- The token as returned from createAuthTokenpublic Date getAuthTokenExpireDate(String pName)
User
getAuthTokenExpireDate
in interface User
pName
- The token namenull
0 if the token does not exist, or the actual
date that the token will expire.public Set<ProtectionDomain> getProtectionDomains()
IOObject
ProtectionDomain
s of this objectgetProtectionDomains
in interface IOObject
getProtectionDomains
in interface User
getProtectionDomains
in class IOObjectImpl
public Section getDefaultSection()
User
getDefaultSection
in interface User
public Section getDefaultSection(int pPublicationId)
User
getDefaultSection
in interface User
pPublicationId
- the id of the publication.protected neo.xredsys.content.person.PersonManager getPersonManager()
protected ObjectLoader getObjectLoader()
protected neo.xredsys.acl.ACLManager getACLManager()
© 1998- 2018 Stibo DX