public String addCollection(String parentPath, String collectionName, String mediaType, String description) throws ResourceAdminServiceExceptionException, RemoteException { return resourceAdminServiceStub.addCollection(parentPath, collectionName, mediaType, description); }
public void addResourcePermission(String pathToAuthorize, String roleToAuthorize, String actionToAuthorize, String permissionType) throws RemoteException, ResourceAdminServiceResourceServiceExceptionException { resourceAdminServiceStub.addRolePermission(pathToAuthorize, roleToAuthorize, actionToAuthorize, permissionType); }
public void addSymbolicLink(String parentPath, String name, String targetPath) throws ResourceAdminServiceExceptionException, RemoteException { resourceAdminServiceStub.addSymbolicLink(parentPath, name, targetPath); }
public boolean addResource(String destinationPath, String mediaType, String description, DataHandler dh) throws ResourceAdminServiceExceptionException, RemoteException { if (log.isDebugEnabled()) { log.debug("Destination Path :" + destinationPath); log.debug("Media Type :" + mediaType); } return resourceAdminServiceStub.addResource(destinationPath, mediaType, description, dh, null, null); }
public ResourceAdminServiceClient(String backEndUrl, String userName, String password) throws AxisFault { String endPoint = backEndUrl + serviceName; resourceAdminServiceStub = new ResourceAdminServiceStub(endPoint); AuthenticateStub.authenticateStub(userName, password, resourceAdminServiceStub); }
public void addTextResource(String parentPath, String fileName, String mediaType, String description, String content) throws RemoteException, ResourceAdminServiceExceptionException { resourceAdminServiceStub.addTextResource(parentPath, fileName, mediaType, description, content); }
public void createVersion(String resourcePath) throws RemoteException, ResourceAdminServiceExceptionException { resourceAdminServiceStub.createVersion(resourcePath); }
public void deleteVersionHistory(String path, String snapshotID) throws RemoteException, ResourceAdminServiceExceptionException { resourceAdminServiceStub.deleteVersionHistory(path, snapshotID); }
public void copyResource(String parentPath, String oldResourcePath, String destinationPath, String targetName) throws RemoteException, ResourceAdminServiceExceptionException { resourceAdminServiceStub.copyResource(parentPath, oldResourcePath, destinationPath, targetName); }
public boolean deleteResource(String destinationPath) throws ResourceAdminServiceExceptionException, RemoteException { return resourceAdminServiceStub.delete(destinationPath); }
public ResourceServiceClient( String cookie, String backendServerURL, ConfigurationContext configContext) throws RegistryException { epr = backendServerURL + "ResourceAdminService"; try { stub = new ResourceAdminServiceStub(configContext, epr); ServiceClient client = stub._getServiceClient(); Options option = client.getOptions(); option.setManageSession(true); option.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, cookie); } catch (AxisFault axisFault) { String msg = "Failed to initiate resource service client. " + axisFault.getMessage(); log.error(msg, axisFault); throw new RegistryException(msg, axisFault); } }
public boolean addResource(String destinationPath, String mediaType, String description, DataHandler dh) throws ResourceAdminServiceExceptionException, RemoteException { if (log.isDebugEnabled()) { log.debug("Destination Path :" + destinationPath); log.debug("Media Type :" + mediaType); } return resourceAdminServiceStub.addResource(destinationPath, mediaType, description, dh, null, null); }
public ResourceAdminServiceClient(String backEndUrl, String userName, String password) throws AxisFault { String endPoint = backEndUrl + serviceName; resourceAdminServiceStub = new ResourceAdminServiceStub(endPoint); AuthenticateStub.authenticateStub(userName, password, resourceAdminServiceStub); }
public void addTextResource(String parentPath, String fileName, String mediaType, String description, String content) throws RemoteException, ResourceAdminServiceExceptionException { resourceAdminServiceStub.addTextResource(parentPath, fileName, mediaType, description, content); }
public void createVersion(String resourcePath) throws RemoteException, ResourceAdminServiceExceptionException { resourceAdminServiceStub.createVersion(resourcePath); }
public void deleteVersionHistory(String path, String snapshotID) throws RemoteException, ResourceAdminServiceExceptionException { resourceAdminServiceStub.deleteVersionHistory(path, snapshotID); }
public void copyResource(String parentPath, String oldResourcePath, String destinationPath, String targetName) throws RemoteException, ResourceAdminServiceExceptionException { resourceAdminServiceStub.copyResource(parentPath, oldResourcePath, destinationPath, targetName); }
public boolean deleteResource(String destinationPath) throws ResourceAdminServiceExceptionException, RemoteException { return resourceAdminServiceStub.delete(destinationPath); }
public ResourceServiceClient(ServletConfig config, HttpSession session) throws RegistryException { this.session =session; String cookie = (String)session.getAttribute(ServerConstants.ADMIN_SERVICE_COOKIE); String backendServerURL = CarbonUIUtil.getServerURL(config.getServletContext(), session); ConfigurationContext configContext = (ConfigurationContext) config. getServletContext().getAttribute(CarbonConstants.CONFIGURATION_CONTEXT); epr = backendServerURL + "ResourceAdminService"; try { stub = new ResourceAdminServiceStub(configContext, epr); ServiceClient client = stub._getServiceClient(); Options option = client.getOptions(); option.setManageSession(true); option.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, cookie); } catch (AxisFault axisFault) { String msg = "Failed to initiate resource service client. " + axisFault.getMessage(); log.error(msg, axisFault); throw new RegistryException(msg, axisFault); } }
public boolean addResource(String destinationPath, String mediaType, String description, DataHandler dh) throws ResourceAdminServiceExceptionException, RemoteException { if (log.isDebugEnabled()) { log.debug("Destination Path :" + destinationPath); log.debug("Media Type :" + mediaType); } return resourceAdminServiceStub.addResource(destinationPath, mediaType, description, dh, null, null); }