org.xcmis.client.gwt.service.policy
Class PolicyService

java.lang.Object
  extended by org.xcmis.client.gwt.service.policy.PolicyService

public class PolicyService
extends Object

Created by The eXo Platform SAS.

Version:
$Id: ${date} ${time}
Author:
Ann Zhuleva

Constructor Summary
PolicyService(com.google.gwt.event.shared.HandlerManager eventBus)
           
 
Method Summary
 void applyPolicy(String url, ApplyPolicy applyPolicy)
          Applies a specified policy to an object.
 void getAllPolicies(String url, String repositoryId, boolean searchAllVersions, boolean includeAllowableActions, EnumIncludeRelationships includeRelationships, String renditionFilter, Long maxItems, Long skipCount)
          Get all policies from repository.
 void getAppliedPolicies(String url, String filter)
          Gets the list of policies currently applied to the specified object.
 void removePolicy(String url, RemovePolicy removePolicy)
          Removes a specified policy from an object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolicyService

public PolicyService(com.google.gwt.event.shared.HandlerManager eventBus)
Parameters:
eventBus - eventBus
Method Detail

applyPolicy

public void applyPolicy(String url,
                        ApplyPolicy applyPolicy)
Applies a specified policy to an object. On success response received, PolicyAppliedEvent event is fired

Parameters:
url - url
applyPolicy - apply policy

removePolicy

public void removePolicy(String url,
                         RemovePolicy removePolicy)
Removes a specified policy from an object. On success response received, PolicyRemovedEvent event is fired

Parameters:
url - url
removePolicy - remove policy

getAppliedPolicies

public void getAppliedPolicies(String url,
                               String filter)
Gets the list of policies currently applied to the specified object. On success response received, AppliedPoliciesReceivedEvent event is fired

Parameters:
url - url
filter - filter

getAllPolicies

public void getAllPolicies(String url,
                           String repositoryId,
                           boolean searchAllVersions,
                           boolean includeAllowableActions,
                           EnumIncludeRelationships includeRelationships,
                           String renditionFilter,
                           Long maxItems,
                           Long skipCount)
Get all policies from repository. On success response received, AllPoliciesReceivedEvent event is fired

Parameters:
url - url
repositoryId - repository id
searchAllVersions - search all versions
includeAllowableActions - include allowable actions
includeRelationships - include relationships
renditionFilter - rendition filter
maxItems - max items
skipCount - skipCount


Copyright © 2010 eXo Platform SAS. All Rights Reserved.