@Component @Singleton public class DefaultSecurityReferenceFactory extends Object implements SecurityReferenceFactory
SecurityReference
factory.Constructor and Description |
---|
DefaultSecurityReferenceFactory() |
Modifier and Type | Method and Description |
---|---|
SecurityReference |
newEntityReference(EntityReference reference)
Returns a
SecurityReference for the provided entity. |
GroupSecurityReference |
newGroupReference(DocumentReference reference)
Returns a
GroupSecurityReference for the provided group document reference. |
UserSecurityReference |
newUserReference(DocumentReference reference)
Returns a
UserSecurityReference for the provided user document reference. |
public SecurityReference newEntityReference(EntityReference reference)
SecurityReferenceFactory
SecurityReference
for the provided entity.newEntityReference
in interface SecurityReferenceFactory
reference
- the entity reference to cloneSecurityReference
for the provided entity.public UserSecurityReference newUserReference(DocumentReference reference)
SecurityReferenceFactory
UserSecurityReference
for the provided user document reference.newUserReference
in interface SecurityReferenceFactory
reference
- the entity reference to cloneUserSecurityReference
for the provided user document reference.public GroupSecurityReference newGroupReference(DocumentReference reference)
SecurityReferenceFactory
GroupSecurityReference
for the provided group document reference.newGroupReference
in interface SecurityReferenceFactory
reference
- the entity reference to cloneGroupSecurityReference
for the provided group document reference.Copyright © 2004–2021 XWiki. All rights reserved.