public static List<Policy> defaultWorkerPolicies(String workspaceSid, String workerSid) {
        Policy activities = new Policy.Builder()
            .url(UrlUtils.activities(workspaceSid))
            .method(HttpMethod.GET)
            .allowed(true)
            .build();

        Policy tasks = new Policy.Builder()
            .url(UrlUtils.allTasks(workspaceSid))
            .method(HttpMethod.GET)
            .allowed(true)
            .build();

        Policy reservations = new Policy.Builder()
            .url(UrlUtils.allReservations(workspaceSid, workerSid))
            .method(HttpMethod.GET)
            .allowed(true)
            .build();
        
        Policy workerFetch = new Policy.Builder()
            .url(UrlUtils.worker(workspaceSid, workerSid))
            .method(HttpMethod.GET)
            .allowed(true)
            .build();

        return Lists.newArrayList(activities, tasks, reservations, workerFetch);
    }
public static List < Policy > defaultWorkerPolicies ( String workspaceSid , String workerSid ) { Policy activities = new Policy . Builder ( ) . url ( UrlUtils . activities ( workspaceSid ) ) . method ( HttpMethod . GET ) . allowed ( true ) . build ( ) ; Policy tasks = new Policy . Builder ( ) . url ( UrlUtils . allTasks ( workspaceSid ) ) . method ( HttpMethod . GET ) . allowed ( true ) . build ( ) ; Policy reservations = new Policy . Builder ( ) . url ( UrlUtils . allReservations ( workspaceSid , workerSid ) ) . method ( HttpMethod . GET ) . allowed ( true ) . build ( ) ; Policy workerFetch = new Policy . Builder ( ) . url ( UrlUtils . worker ( workspaceSid , workerSid ) ) . method ( HttpMethod . GET ) . allowed ( true ) . build ( ) ; return Lists . newArrayList ( activities , tasks , reservations , workerFetch ) ; }
Build the default Polices for a Worker.

@param workspaceSid Workspace sid of the worker
@param workerSid Worker sid
@return generated Policies