Class SecurityInfoValueObject
java.lang.Object
ubic.gemma.web.controller.common.auditAndSecurity.SecurityInfoValueObject
Carries extensive security information about an entity.
- Author:
- paul
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetOwner()booleanbooleanbooleanbooleanisShared()voidsetAvailableGroups(Collection<String> availableGroups) voidsetCurrentGroup(String currentGroup) voidsetCurrentGroupCanRead(boolean currentGroupCanRead) voidsetCurrentGroupCanWrite(boolean currentGroupCanWrite) voidsetCurrentUserCanwrite(Boolean currentUserCanwrite) voidsetCurrentUserOwns(Boolean currentUserOwns) voidsetEntityClazz(String entityClazz) voidsetEntityDescription(String entityDescription) voidsetEntityId(Long entityId) voidsetEntityName(String entityName) voidsetEntityShortName(String entityShortName) voidsetGroupsThatCanRead(Collection<String> groupsThatCanRead) voidsetGroupsThatCanWrite(Collection<String> groupsThatCanWrite) voidsetOwner(SidValueObject owner) voidsetOwnersGroups(Collection<String> ownersGroups) voidsetPubliclyReadable(boolean isPubliclyReadable) voidsetShared(boolean isShared)
-
Constructor Details
-
SecurityInfoValueObject
public SecurityInfoValueObject() -
SecurityInfoValueObject
- Parameters:
s- to initialize. Security information will not be filled in.
-
-
Method Details
-
getAvailableGroups
-
getCurrentGroup
-
getCurrentUserCanwrite
- Returns:
- the currentUserCanwrite
-
getCurrentUserOwns
-
getEntityClazz
- Returns:
- the entityClazz
-
getEntityDescription
- Returns:
- the entityDescription
-
getEntityId
- Returns:
- the entityId
-
getEntityName
- Returns:
- the entityName
-
getEntityShortName
- Returns:
- the entityShortName
-
getGroupsThatCanRead
- Returns:
- the groupsThatCanRead
-
getGroupsThatCanWrite
- Returns:
- the groupsThatCanWrite
-
getOwner
-
getOwnersGroups
-
isCurrentGroupCanRead
public boolean isCurrentGroupCanRead() -
isCurrentGroupCanWrite
public boolean isCurrentGroupCanWrite() -
isPubliclyReadable
public boolean isPubliclyReadable() -
setAvailableGroups
-
setCurrentGroup
-
setCurrentGroupCanRead
public void setCurrentGroupCanRead(boolean currentGroupCanRead) -
setCurrentGroupCanWrite
public void setCurrentGroupCanWrite(boolean currentGroupCanWrite) -
setCurrentUserCanwrite
- Parameters:
currentUserCanwrite- the currentUserCanwrite to set
-
setCurrentUserOwns
-
setEntityClazz
- Parameters:
entityClazz- the entityClazz to set
-
setEntityDescription
- Parameters:
entityDescription- the entityDescription to set
-
setEntityId
- Parameters:
entityId- the entityId to set
-
setEntityName
- Parameters:
entityName- the entityName to set
-
setEntityShortName
- Parameters:
entityShortName- the entityShortName to set
-
setGroupsThatCanRead
- Parameters:
groupsThatCanRead- the groupsThatCanRead to set
-
setGroupsThatCanWrite
- Parameters:
groupsThatCanWrite- the groupsThatCanWrite to set
-
setOwner
-
setOwnersGroups
-
setPubliclyReadable
public void setPubliclyReadable(boolean isPubliclyReadable)
-