Package org.xwiki.security
Class DefaultSecurityReferenceFactory
- java.lang.Object
-
- org.xwiki.security.DefaultSecurityReferenceFactory
-
- All Implemented Interfaces:
SecurityReferenceFactory
@Component @Singleton public class DefaultSecurityReferenceFactory extends Object implements SecurityReferenceFactory
SecurityReference
factory.- Since:
- 4.0M2
- Version:
- $Id: c528648c1c855cc21674f9a6f51913ec032d72ed $
-
-
Constructor Summary
Constructors Constructor Description DefaultSecurityReferenceFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SecurityReference
newEntityReference(EntityReference reference)
Returns aSecurityReference
for the provided entity.GroupSecurityReference
newGroupReference(DocumentReference reference)
Returns aGroupSecurityReference
for the provided group document reference.UserSecurityReference
newUserReference(DocumentReference reference)
Returns aUserSecurityReference
for the provided user document reference.
-
-
-
Method Detail
-
newEntityReference
public SecurityReference newEntityReference(EntityReference reference)
Description copied from interface:SecurityReferenceFactory
Returns aSecurityReference
for the provided entity.- Specified by:
newEntityReference
in interfaceSecurityReferenceFactory
- Parameters:
reference
- the entity reference to clone- Returns:
- a
SecurityReference
for the provided entity.
-
newUserReference
public UserSecurityReference newUserReference(DocumentReference reference)
Description copied from interface:SecurityReferenceFactory
Returns aUserSecurityReference
for the provided user document reference.- Specified by:
newUserReference
in interfaceSecurityReferenceFactory
- Parameters:
reference
- the entity reference to clone- Returns:
- a
UserSecurityReference
for the provided user document reference.
-
newGroupReference
public GroupSecurityReference newGroupReference(DocumentReference reference)
Description copied from interface:SecurityReferenceFactory
Returns aGroupSecurityReference
for the provided group document reference.- Specified by:
newGroupReference
in interfaceSecurityReferenceFactory
- Parameters:
reference
- the entity reference to clone- Returns:
- a
GroupSecurityReference
for the provided group document reference.
-
-