1 16 17 package org.apache.jetspeed.services.psmlmanager; 18 19 import java.util.Iterator ; 20 import java.util.List ; 21 import org.apache.turbine.services.Service; 22 import org.apache.jetspeed.om.profile.PSMLDocument; 23 import org.apache.jetspeed.om.profile.ProfileLocator; 24 import org.apache.jetspeed.om.profile.QueryLocator; 25 import org.apache.jetspeed.om.profile.Profile; 26 import org.apache.jetspeed.om.security.JetspeedUser; 27 import org.apache.jetspeed.om.security.Role; 28 import org.apache.jetspeed.om.security.Group; 29 30 36 public interface PsmlManagerService extends Service 37 { 38 39 40 public String SERVICE_NAME = "PsmlManager"; 41 42 50 public PSMLDocument getDocument( String name ); 51 52 57 public PSMLDocument getDocument( ProfileLocator locator ); 58 59 65 public PSMLDocument getDocument( List locators ); 66 67 72 public boolean store(Profile profile); 73 74 80 public boolean saveDocument(PSMLDocument doc); 81 82 90 public boolean saveDocument(String fileOrUrl, PSMLDocument doc); 91 92 97 public PSMLDocument createDocument( Profile profile ); 98 99 103 public void removeDocument( ProfileLocator locator ); 104 105 109 public void removeUserDocuments( JetspeedUser user ); 110 111 115 public void removeGroupDocuments( Group group ); 116 117 121 public void removeRoleDocuments( Role role ); 122 123 129 public Iterator query( QueryLocator locator ); 130 131 138 public int export(PsmlManagerService consumer, QueryLocator locator); 139 140 145 public PSMLDocument refresh( ProfileLocator locator ); 146 147 } 148 149 | Popular Tags |