org.xwiki.security
Class DefaultSecurityReferenceFactory

java.lang.Object
  extended by org.xwiki.security.DefaultSecurityReferenceFactory
All Implemented Interfaces:
SecurityReferenceFactory

@Component
@Singleton
public class DefaultSecurityReferenceFactory
extends Object
implements SecurityReferenceFactory

SecurityReference factory.

Since:
4.0M2
Version:
$Id: 159de606581cdcf1306ce07c939dd824695af3e5 $

Constructor Summary
DefaultSecurityReferenceFactory()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSecurityReferenceFactory

public DefaultSecurityReferenceFactory()
Method Detail

newEntityReference

public SecurityReference newEntityReference(EntityReference reference)
Description copied from interface: SecurityReferenceFactory
Returns a SecurityReference for the provided entity.

Specified by:
newEntityReference in interface SecurityReferenceFactory
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 a UserSecurityReference for the provided user document reference.

Specified by:
newUserReference in interface SecurityReferenceFactory
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 a GroupSecurityReference for the provided group document reference.

Specified by:
newGroupReference in interface SecurityReferenceFactory
Parameters:
reference - the entity reference to clone
Returns:
a GroupSecurityReference for the provided group document reference.


Copyright © 2004–2015 XWiki. All rights reserved.