|
Author: doogie
Date: Thu Jan 14 18:36:22 2010 New Revision: 899346 URL: http://svn.apache.org/viewvc?rev=899346&view=rev Log: Interface definitions don't need public on method declarations. Modified: ofbiz/branches/executioncontext20091231/framework/api/src/org/ofbiz/api/authorization/AccessController.java ofbiz/branches/executioncontext20091231/framework/api/src/org/ofbiz/api/authorization/AuthorizationManager.java ofbiz/branches/executioncontext20091231/framework/api/src/org/ofbiz/api/context/ExecutionArtifact.java ofbiz/branches/executioncontext20091231/framework/api/src/org/ofbiz/api/context/ExecutionContext.java ofbiz/branches/executioncontext20091231/framework/api/src/org/ofbiz/api/context/ParametersArtifact.java ofbiz/branches/executioncontext20091231/framework/context/src/org/ofbiz/context/PathNodeVisitor.java Modified: ofbiz/branches/executioncontext20091231/framework/api/src/org/ofbiz/api/authorization/AccessController.java URL: http://svn.apache.org/viewvc/ofbiz/branches/executioncontext20091231/framework/api/src/org/ofbiz/api/authorization/AccessController.java?rev=899346&r1=899345&r2=899346&view=diff ============================================================================== --- ofbiz/branches/executioncontext20091231/framework/api/src/org/ofbiz/api/authorization/AccessController.java (original) +++ ofbiz/branches/executioncontext20091231/framework/api/src/org/ofbiz/api/authorization/AccessController.java Thu Jan 14 18:36:22 2010 @@ -41,7 +41,7 @@ * @param permission The permission to check * @throws AccessControlException */ - public void checkPermission(Permission permission) throws AccessControlException; + void checkPermission(Permission permission) throws AccessControlException; /** Returns silently if the user has been granted <code>permission</code> * access for the specified artifact, throws <code>AccessControlException</code> @@ -53,7 +53,7 @@ * @param permission The permission to check * @throws AccessControlException */ - public void checkPermission(Permission permission, ArtifactPath artifactPath) throws AccessControlException; + void checkPermission(Permission permission, ArtifactPath artifactPath) throws AccessControlException; /** Applies permission filters to a <code>List</code>. The * returned <code>List</code> is security-aware, so methods @@ -65,7 +65,7 @@ * were specified for the current artifact, or the original * <code>List</code> otherwise */ - public <E> List<E> applyFilters(List<E> list); + <E> List<E> applyFilters(List<E> list); /** Applies permission filters to a <code>ListIterator</code>. The * returned <code>ListIterator</code> is security-aware, so methods @@ -77,6 +77,6 @@ * were specified for the current artifact, or the original * <code>ListIterator</code> otherwise */ - public <E> ListIterator<E> applyFilters(ListIterator<E> list); + <E> ListIterator<E> applyFilters(ListIterator<E> list); } Modified: ofbiz/branches/executioncontext20091231/framework/api/src/org/ofbiz/api/authorization/AuthorizationManager.java URL: http://svn.apache.org/viewvc/ofbiz/branches/executioncontext20091231/framework/api/src/org/ofbiz/api/authorization/AuthorizationManager.java?rev=899346&r1=899345&r2=899346&view=diff ============================================================================== --- ofbiz/branches/executioncontext20091231/framework/api/src/org/ofbiz/api/authorization/AuthorizationManager.java (original) +++ ofbiz/branches/executioncontext20091231/framework/api/src/org/ofbiz/api/authorization/AuthorizationManager.java Thu Jan 14 18:36:22 2010 @@ -25,33 +25,33 @@ */ public interface AuthorizationManager { - public void assignGroupPermission(String userGroupId, String artifactId, Permission permission) throws AuthorizationManagerException; + void assignGroupPermission(String userGroupId, String artifactId, Permission permission) throws AuthorizationManagerException; - public void assignGroupToGroup(String childGroupId, String parentGroupId) throws AuthorizationManagerException; + void assignGroupToGroup(String childGroupId, String parentGroupId) throws AuthorizationManagerException; - public void assignUserPermission(String userLoginId, String artifactId, Permission permission) throws AuthorizationManagerException; + void assignUserPermission(String userLoginId, String artifactId, Permission permission) throws AuthorizationManagerException; - public void assignUserToGroup(String userLoginId, String userGroupId) throws AuthorizationManagerException; + void assignUserToGroup(String userLoginId, String userGroupId) throws AuthorizationManagerException; - public void createUser(String userLoginId, String password) throws AuthorizationManagerException; + void createUser(String userLoginId, String password) throws AuthorizationManagerException; - public String createUserGroup(String description) throws AuthorizationManagerException; + String createUserGroup(String description) throws AuthorizationManagerException; - public void deleteGroupFromGroup(String childGroupId, String parentGroupId) throws AuthorizationManagerException; + void deleteGroupFromGroup(String childGroupId, String parentGroupId) throws AuthorizationManagerException; - public void deleteGroupPermission(String userGroupId, String artifactId, Permission permission) throws AuthorizationManagerException; + void deleteGroupPermission(String userGroupId, String artifactId, Permission permission) throws AuthorizationManagerException; - public void deleteUser(String userLoginId) throws AuthorizationManagerException; + void deleteUser(String userLoginId) throws AuthorizationManagerException; - public void deleteUserFromGroup(String userLoginId, String userGroupId) throws AuthorizationManagerException; + void deleteUserFromGroup(String userLoginId, String userGroupId) throws AuthorizationManagerException; - public void deleteUserGroup(String userGroupId) throws AuthorizationManagerException; + void deleteUserGroup(String userGroupId) throws AuthorizationManagerException; - public void deleteUserPermission(String userLoginId, String artifactId, Permission permission) throws AuthorizationManagerException; + void deleteUserPermission(String userLoginId, String artifactId, Permission permission) throws AuthorizationManagerException; - public AccessController getAccessController() throws AuthorizationManagerException; + AccessController getAccessController() throws AuthorizationManagerException; - public void updateUser(String userLoginId, String password) throws AuthorizationManagerException; + void updateUser(String userLoginId, String password) throws AuthorizationManagerException; - public void updateUserGroup(String userGroupId, String description) throws AuthorizationManagerException; + void updateUserGroup(String userGroupId, String description) throws AuthorizationManagerException; } Modified: ofbiz/branches/executioncontext20091231/framework/api/src/org/ofbiz/api/context/ExecutionArtifact.java URL: http://svn.apache.org/viewvc/ofbiz/branches/executioncontext20091231/framework/api/src/org/ofbiz/api/context/ExecutionArtifact.java?rev=899346&r1=899345&r2=899346&view=diff ============================================================================== --- ofbiz/branches/executioncontext20091231/framework/api/src/org/ofbiz/api/context/ExecutionArtifact.java (original) +++ ofbiz/branches/executioncontext20091231/framework/api/src/org/ofbiz/api/context/ExecutionArtifact.java Thu Jan 14 18:36:22 2010 @@ -29,12 +29,12 @@ * * @return Location of this artifact */ - public String getLocation(); + String getLocation(); /** * Returns the name of this artifact. * * @return Name of this artifact */ - public String getName(); + String getName(); } Modified: ofbiz/branches/executioncontext20091231/framework/api/src/org/ofbiz/api/context/ExecutionContext.java URL: http://svn.apache.org/viewvc/ofbiz/branches/executioncontext20091231/framework/api/src/org/ofbiz/api/context/ExecutionContext.java?rev=899346&r1=899345&r2=899346&view=diff ============================================================================== --- ofbiz/branches/executioncontext20091231/framework/api/src/org/ofbiz/api/context/ExecutionContext.java (original) +++ ofbiz/branches/executioncontext20091231/framework/api/src/org/ofbiz/api/context/ExecutionContext.java Thu Jan 14 18:36:22 2010 @@ -49,33 +49,33 @@ * Restores the <code>AuthorizationManager</code> instance that was in use * before the last <code>runUnprotected</code> method call. */ - public void endRunUnprotected(); + void endRunUnprotected(); /** Returns an <code>AccessController</code> instance for this * user login and execution path combination. * * @return An <code>AccessController</code> instance */ - public AccessController getAccessController(); + AccessController getAccessController(); /** Returns the currency unit of measure. * * @return The ISO currency code */ - public String getCurrencyUom(); + String getCurrencyUom(); /** Returns the current execution path. * * @return The current execution path */ - public ArtifactPath getExecutionPath(); + ArtifactPath getExecutionPath(); /** Returns the current execution path as a <code>String</code>. * Path elements are separated with a forward slash. * * @return The current execution path */ - public String getExecutionPathAsString(); + String getExecutionPathAsString(); /** Returns the current execution path as an array of strings. * Each array element contains an Artifact name, with the @@ -83,80 +83,80 @@ * * @return The current execution path as an array */ - public String[] getExecutionPathAsArray(); + String[] getExecutionPathAsArray(); /** Returns the current <code>Locale</code>. * * @return The current <code>Locale</code> */ - public Locale getLocale(); + Locale getLocale(); /** * Returns the parameters associated with this context. * * @return The parameters associated with this context */ - public Map<String, ? extends Object> getParameters(); + Map<String, ? extends Object> getParameters(); /** Returns the specified property. * * @param key property whose associated value is to be returned * @return the specified property, or null if the property doesn't exist */ - public Object getProperty(String key); + Object getProperty(String key); /** Returns the current <code>AuthorizationManager</code> instance. * * @return The current <code>AuthorizationManager</code> instance */ - public AuthorizationManager getSecurity(); + AuthorizationManager getSecurity(); /** Returns the current <code>TimeZone</code>. * * @return The current <code>TimeZone</code> */ - public TimeZone getTimeZone(); + TimeZone getTimeZone(); /** Initializes this ExecutionContext with artifacts found in * <code>params</code>. * * @param params */ - public void initializeContext(Map<String, ? extends Object> params); + void initializeContext(Map<String, ? extends Object> params); /** Pop an <code>ExecutionArtifact</code> off the stack. */ - public void popExecutionArtifact(); + void popExecutionArtifact(); /** Push an <code>ExecutionArtifact</code> on the stack. * * @param artifact */ - public void pushExecutionArtifact(ExecutionArtifact artifact); + void pushExecutionArtifact(ExecutionArtifact artifact); /** * Resets this <code>ExecutionContext</code> to its default * state. This method is called when an <code>ExecutionContext</code> * instance is about to be reused. */ - public void reset(); + void reset(); /** * Replaces the current <code>AuthorizationManager</code> instance * with one that allows unrestricted use of all artifacts. */ - public void runUnprotected(); + void runUnprotected(); /** Sets the currency unit of measure. * * @param currencyUom The ISO currency code */ - public void setCurrencyUom(String currencyUom); + void setCurrencyUom(String currencyUom); /** Sets the current <code>Locale</code>. * * @param locale The current <code>Locale</code> */ - public void setLocale(Locale locale); + void setLocale(Locale locale); /** Associates the specified value with the specified key. * If the context contained a previous property for this key, @@ -166,17 +166,17 @@ * @param value the value to be associated with the specified key * @return the previous value associated with specified key, or null if there was no mapping for key */ - public Object setProperty(String key, Object value); + Object setProperty(String key, Object value); /** Sets the current <code>AuthorizationManager</code> instance. * * @param security The new <code>AuthorizationManager</code> instance */ - public void setSecurity(AuthorizationManager security); + void setSecurity(AuthorizationManager security); /** Sets the current <code>TimeZone</code>. * * @param timeZone The current <code>TimeZone</code> */ - public void setTimeZone(TimeZone timeZone); + void setTimeZone(TimeZone timeZone); } Modified: ofbiz/branches/executioncontext20091231/framework/api/src/org/ofbiz/api/context/ParametersArtifact.java URL: http://svn.apache.org/viewvc/ofbiz/branches/executioncontext20091231/framework/api/src/org/ofbiz/api/context/ParametersArtifact.java?rev=899346&r1=899345&r2=899346&view=diff ============================================================================== --- ofbiz/branches/executioncontext20091231/framework/api/src/org/ofbiz/api/context/ParametersArtifact.java (original) +++ ofbiz/branches/executioncontext20091231/framework/api/src/org/ofbiz/api/context/ParametersArtifact.java Thu Jan 14 18:36:22 2010 @@ -43,6 +43,6 @@ * * @return The parameters associated with this artifact */ - public Map<String, ? extends Object> getParameters(); + Map<String, ? extends Object> getParameters(); } Modified: ofbiz/branches/executioncontext20091231/framework/context/src/org/ofbiz/context/PathNodeVisitor.java URL: http://svn.apache.org/viewvc/ofbiz/branches/executioncontext20091231/framework/context/src/org/ofbiz/context/PathNodeVisitor.java?rev=899346&r1=899345&r2=899346&view=diff ============================================================================== --- ofbiz/branches/executioncontext20091231/framework/context/src/org/ofbiz/context/PathNodeVisitor.java (original) +++ ofbiz/branches/executioncontext20091231/framework/context/src/org/ofbiz/context/PathNodeVisitor.java Thu Jan 14 18:36:22 2010 @@ -23,7 +23,7 @@ import org.ofbiz.context.PathNode.WildCardNode; public interface PathNodeVisitor { - public void visit(BranchNode node); - public void visit(SubstitutionNode node); - public void visit(WildCardNode node); + void visit(BranchNode node); + void visit(SubstitutionNode node); + void visit(WildCardNode node); } |
| Free forum by Nabble | Edit this page |
