com.arsdigita.search.filters
Class PermissionFilterSpecification

java.lang.Object
  extended bycom.arsdigita.search.FilterSpecification
      extended bycom.arsdigita.search.filters.PermissionFilterSpecification

public class PermissionFilterSpecification
extends FilterSpecification

A filter specification for supplying a party and privilege to filter against.


Field Summary
static String PARTY
           
static String PRIVILEGE
           
 
Constructor Summary
PermissionFilterSpecification()
          Creates a new permission filter spec with 'The Public' party and the READ privilege
PermissionFilterSpecification(Party party)
          Creates a new permission filter spec for a party with READ privilege
PermissionFilterSpecification(Party party, PrivilegeDescriptor privilege)
          Creates a new permission filter spec for a party with a specified privilege
 
Method Summary
 Party getParty()
          Returns the party to check permissions for
 PrivilegeDescriptor getPrivilege()
          Returns the privilege to check against
 
Methods inherited from class com.arsdigita.search.FilterSpecification
equals, get, getType, hashCode, set
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARTY

public static final String PARTY
See Also:
Constant Field Values

PRIVILEGE

public static final String PRIVILEGE
See Also:
Constant Field Values
Constructor Detail

PermissionFilterSpecification

public PermissionFilterSpecification()
Creates a new permission filter spec with 'The Public' party and the READ privilege


PermissionFilterSpecification

public PermissionFilterSpecification(Party party)
Creates a new permission filter spec for a party with READ privilege

Parameters:
party - the party to check permissions for

PermissionFilterSpecification

public PermissionFilterSpecification(Party party,
                                     PrivilegeDescriptor privilege)
Creates a new permission filter spec for a party with a specified privilege

Parameters:
party - the party to check permissions for
privilege - the privilege to check
Method Detail

getParty

public Party getParty()
Returns the party to check permissions for

Returns:
the party to check

getPrivilege

public PrivilegeDescriptor getPrivilege()
Returns the privilege to check against

Returns:
the privilege


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2337 UTC