Esri Geoportal Server
1.0

com.esri.gpt.framework.security.metadata
Class MetadataAccessPolicy

java.lang.Object
  extended by com.esri.gpt.framework.security.metadata.MetadataAccessPolicy
All Implemented Interfaces:
Serializable

public class MetadataAccessPolicy
extends Object
implements Serializable

This class is used to store metadata access policy configuration.

See Also:
Serialized Form

Field Summary
static String TYPE_PUBLIC_PROTECTED
          Document access control type public-protected field (single-value) = "public-protected"
static String TYPE_RESTRICTED
          Document access control type restricted field (single-value) = "restricted"
static String TYPE_UNRESTRICTED
          Document access control type unrestricted field (single-value) = "unrestricted"
 
Constructor Summary
MetadataAccessPolicy()
          Default constructor.
 
Method Summary
 String getAccessPolicyType()
          Gets the access policy type
 String getAccessToGroupDN()
          Gets the group access distributed name
 boolean isPolicyUnrestricted()
          Indicates if the application metadata access policy is unrestricted.
 boolean isProtectedGroupDN()
          Checks if has protected group DN is configured
 void setAccessPolicyType(String policyType)
          Sets the access policy type
 void setAccessToGroupDN(String toGroupDN)
          Sets the group access distributed name
 String toString()
          Returns the string representation of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE_PUBLIC_PROTECTED

public static final String TYPE_PUBLIC_PROTECTED
Document access control type public-protected field (single-value) = "public-protected"

See Also:
Constant Field Values

TYPE_RESTRICTED

public static final String TYPE_RESTRICTED
Document access control type restricted field (single-value) = "restricted"

See Also:
Constant Field Values

TYPE_UNRESTRICTED

public static final String TYPE_UNRESTRICTED
Document access control type unrestricted field (single-value) = "unrestricted"

See Also:
Constant Field Values
Constructor Detail

MetadataAccessPolicy

public MetadataAccessPolicy()
Default constructor.

Method Detail

getAccessPolicyType

public String getAccessPolicyType()
Gets the access policy type

Returns:
access policy type

setAccessPolicyType

public void setAccessPolicyType(String policyType)
                         throws Exception
Sets the access policy type

Parameters:
policyType - policy type
Throws:
Exception - if setting access policy type fails

getAccessToGroupDN

public String getAccessToGroupDN()
Gets the group access distributed name

Returns:
group access distributed name

setAccessToGroupDN

public void setAccessToGroupDN(String toGroupDN)
Sets the group access distributed name

Parameters:
toGroupDN - access distributed name

isPolicyUnrestricted

public boolean isPolicyUnrestricted()
Indicates if the application metadata access policy is unrestricted.

Returns:
true if the policy is unrestricted

isProtectedGroupDN

public boolean isProtectedGroupDN()
Checks if has protected group DN is configured

Returns:
true if protected group DN is configured

toString

public String toString()
Returns the string representation of the object.

Overrides:
toString in class Object
Returns:
the string

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.