1 19 20 package com.sslexplorer.policyframework; 21 22 import java.util.Collection ; 23 24 import com.sslexplorer.security.SessionInfo; 25 26 52 53 public interface ResourceType extends Comparable <ResourceType> { 54 55 60 public boolean isPolicyRequired(); 61 62 66 public int getResourceTypeId(); 67 68 74 public String getBundle(); 75 76 82 public Collection <Permission> getPermissions(); 83 84 90 public void addPermission(Permission permission); 91 92 99 public Permission getPermission(int idx); 100 101 108 public String getPermissionClass(); 109 110 117 public void setPermissionClass(String permissionClass); 118 119 126 public boolean equals(Object o); 127 128 136 public Resource getResourceById(int resourceId) throws Exception ; 137 138 147 public Resource getResourceByName(String resourceName, SessionInfo session) throws Exception ; 148 149 158 public Resource removeResource(int resourceId, SessionInfo session) throws Exception ; 159 160 168 public void updateResource(Resource resource, SessionInfo session) throws Exception ; 169 170 181 public Resource cloneResource(Resource sourceResource, SessionInfo session) throws CloneNotSupportedException ; 182 } 183 | Popular Tags |