com.waveset.object
Class ResourcePolicy

java.lang.Object
  extended bycom.waveset.object.ResourcePolicy

public class ResourcePolicy
extends java.lang.Object


Field Summary
protected static Trace _trace
           
static java.lang.String code_id
           
static java.lang.String REPOSITORY_ID
           
 
Constructor Summary
ResourcePolicy(LighthouseContext context)
           
ResourcePolicy(LighthouseContext context, boolean checkout)
           
 
Method Summary
 void checkin()
          Checks the changed configuration back into the repository, provided the configuration was acquired with read-write access.
static java.lang.Object getEffectivePolicyValue(ObjectCache cache, java.lang.String parameter, Resource res)
           
 java.lang.Object getEffectivePolicyValue(java.lang.String parameter, Resource res)
           
static java.lang.Object getPolicyValue(ObjectCache cache, java.lang.String parameter, Resource res, ScopeType scope)
           
 java.lang.Object getPolicyValue(java.lang.String parameter)
           
 java.lang.Object getPolicyValue(java.lang.String parameter, Resource res)
           
 java.lang.Object getPolicyValue(java.lang.String parameter, Resource res, ScopeType scope)
           
 java.lang.Object getPolicyValue(java.lang.String parameter, java.lang.String resType)
           
 void removePolicy(java.lang.String parameter)
           
 void removePolicy(java.lang.String parameter, Resource res)
           
 void removePolicy(java.lang.String parameter, Resource res, ScopeType scope)
          Sets the value of a policy parameter.
 void removePolicy(java.lang.String parameter, java.lang.String resType)
           
 void setPolicy(java.lang.String parameter, java.lang.Object value)
          Sets the value of a policy parameter.
 void setPolicy(java.lang.String parameter, java.lang.Object value, Resource res)
          Sets the value of a policy parameter.
 void setPolicy(java.lang.String parameter, java.lang.Object value, Resource res, ScopeType scope)
          Sets the value of a policy parameter.
 void setPolicy(java.lang.String parameter, java.lang.String resType, java.lang.Object value)
           
 void unlock()
          Unlocks the configuration in the repository.
static void unlock(LighthouseContext context)
          Unlocks the configuration in the repository.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

code_id

public static final java.lang.String code_id
See Also:
Constant Field Values

_trace

protected static final Trace _trace

REPOSITORY_ID

public static final java.lang.String REPOSITORY_ID
See Also:
Constant Field Values
Constructor Detail

ResourcePolicy

public ResourcePolicy(LighthouseContext context)
               throws WavesetException

ResourcePolicy

public ResourcePolicy(LighthouseContext context,
                      boolean checkout)
               throws WavesetException
Method Detail

unlock

public static void unlock(LighthouseContext context)
                   throws WavesetException
Unlocks the configuration in the repository.

Throws:
WavesetException

unlock

public void unlock()
            throws WavesetException
Unlocks the configuration in the repository.

Throws:
WavesetException

checkin

public void checkin()
             throws ItemNotLocked,
                    WavesetException
Checks the changed configuration back into the repository, provided the configuration was acquired with read-write access.

Throws:
ItemNotLocked
WavesetException

setPolicy

public void setPolicy(java.lang.String parameter,
                      java.lang.Object value)
               throws WavesetException
Sets the value of a policy parameter.

Throws:
WavesetException

setPolicy

public void setPolicy(java.lang.String parameter,
                      java.lang.Object value,
                      Resource res)
               throws WavesetException
Sets the value of a policy parameter.

Throws:
WavesetException

setPolicy

public void setPolicy(java.lang.String parameter,
                      java.lang.Object value,
                      Resource res,
                      ScopeType scope)
               throws WavesetException
Sets the value of a policy parameter.

Throws:
WavesetException

setPolicy

public void setPolicy(java.lang.String parameter,
                      java.lang.String resType,
                      java.lang.Object value)
               throws WavesetException
Throws:
WavesetException

removePolicy

public void removePolicy(java.lang.String parameter)
                  throws WavesetException
Throws:
WavesetException

removePolicy

public void removePolicy(java.lang.String parameter,
                         java.lang.String resType)
                  throws WavesetException
Throws:
WavesetException

removePolicy

public void removePolicy(java.lang.String parameter,
                         Resource res)
                  throws WavesetException
Throws:
WavesetException

removePolicy

public void removePolicy(java.lang.String parameter,
                         Resource res,
                         ScopeType scope)
                  throws WavesetException
Sets the value of a policy parameter.

Throws:
WavesetException

getPolicyValue

public java.lang.Object getPolicyValue(java.lang.String parameter)
                                throws WavesetException
Throws:
WavesetException

getPolicyValue

public java.lang.Object getPolicyValue(java.lang.String parameter,
                                       Resource res)
                                throws WavesetException
Throws:
WavesetException

getPolicyValue

public static java.lang.Object getPolicyValue(ObjectCache cache,
                                              java.lang.String parameter,
                                              Resource res,
                                              ScopeType scope)
                                       throws WavesetException
Throws:
WavesetException

getPolicyValue

public java.lang.Object getPolicyValue(java.lang.String parameter,
                                       Resource res,
                                       ScopeType scope)
                                throws WavesetException
Throws:
WavesetException

getPolicyValue

public java.lang.Object getPolicyValue(java.lang.String parameter,
                                       java.lang.String resType)
                                throws WavesetException
Throws:
WavesetException

getEffectivePolicyValue

public java.lang.Object getEffectivePolicyValue(java.lang.String parameter,
                                                Resource res)
                                         throws WavesetException
Throws:
WavesetException

getEffectivePolicyValue

public static java.lang.Object getEffectivePolicyValue(ObjectCache cache,
                                                       java.lang.String parameter,
                                                       Resource res)
                                                throws WavesetException
Throws:
WavesetException